package com.jims.master.modules.patient.health.dao;


import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.patient.health.entity.DailyCheck;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 日常检测DAO接口
 * @author xueyx
 * @version 2017-07-14
 */
@MyBatisDao
public interface DailyCheckDao extends CrudDao<DailyCheck> {
    List<DailyCheck> findByBaseId(@Param("baseInfo") String baseid);

    List<DailyCheck> findDailyCheckList(DailyCheck dailyCheck);

    /***
     *一个月的最新值
     * @param dailyCheck
     * @return
     */
    DailyCheck findMonthLastValueByBaseId(DailyCheck dailyCheck);
}